import request from '@/utils/request'

// 查询试卷信息
export function listPaper(query) {
  return request({
    url: '/exam/recode/list/paper',
    method: 'get',
    params: query
  })
}

// 查询用户考试记录
export function listRecord(query) {
  return request({
    url: '/exam/recode/list',
    method: 'get',
    params: query
  })
}

// 查询用户试卷答题详细信息
export function listUserAns(query) {
  return request({
    url: '/exam/recode/list/quAns',
    method: 'get',
    params: query
  })
}

// 更改用户分数
export function changeUserScore(data) {
  return request({
    url: '/exam/recode/user/changeScore',
    method: 'put',
    data: data
  })
}

// 查询试卷用户排名信息
export function listUserRank(query) {
  return request({
    url: '/exam/recode/list/userRank',
    method: 'get',
    params: query
  })
}

// 查询当前试卷统计信息
export function listPaperCensus(query) {
  return request({
    url: '/exam/recode/paper/census',
    method: 'get',
    params: query
  })
}